package edu.yngsxy.wkstudy.core.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
@TableName("test_user")  // 对应数据库表名
public class TestUser extends WkBaseEntity {
    @Schema(title = "用户名称", description = "6~8位的字母、数字、下划线组成的字符串，且必须以字母开头，不能包含“字母”", requiredMode =Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "用户名不能为空")
    @Size(min = 2, max = 20, message = "用户名长度2~20个字符")
    private String name;
    @Schema(title = "描述", description = "")
    private String intro;
}